/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.guilayer.gamemanagermenu.playdialog;

import it.unical.canonaco.rende.igpe.game.cbv.guilayer.sprites.SpriteSheetCache;
import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.component.pawn.Character;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JCheckBox;
import javax.swing.JList;

/**
 * @author Massimo Canonaco
 *
 */
public class JListCharacterData 
{
	/** */
	private Character  subject;
	
	/** */
	private ImageIcon icon;

	/** */
	private JCheckBox checkBox;
	
	/** */
	public JListCharacterData(final Character character, final ImageIcon image, MultipleCheckBox mcb)
	{
		icon = image;
		subject = character;
		checkBox = new JCheckBox(character.getName());
		mcb.add(checkBox);
	}
	/**
	 * @return the subject
	 */
	public Character getSubject() {
		return subject;
	}

	/**
	 * @param subject the subject to set
	 */
	public void setSubject(Character subject) {
		this.subject = subject;
	}

	/**
	 * @return the icon
	 */
	public ImageIcon getIcon() {
		return icon;
	}

	/**
	 * @param icon the icon to set
	 */
	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}
	/**
	 * @return the checkBox
	 */
	public JCheckBox getCheckBox() {
		return checkBox;
	}
}
